package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigInteger;
import java.util.Objects;

/**
 * Created by sdywcd on 2019/12/9.
 * Des:
 */
@Entity
@Table(name = "brand_t", schema = "jshoperxms", catalog = "")
public class BrandT {
    private String id;
    private String name;
    private String creatorid;
    private BigInteger createtime;
    private String des;
    private String logo;
    private int sort;
    private String website;
    private String smalllogo;
    private BigInteger updatetime;
    private String status;
    private int versiont;

    @Id
    @Column(name = "ID", nullable = false, length = 20)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME", nullable = false, length = 50)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 20)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public BigInteger getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigInteger createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "DES", nullable = false, length = 1000)
    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Basic
    @Column(name = "LOGO", nullable = false, length = 255)
    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    @Basic
    @Column(name = "SORT", nullable = false)
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Basic
    @Column(name = "WEBSITE", nullable = false, length = 255)
    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    @Basic
    @Column(name = "SMALLLOGO", nullable = false, length = 255)
    public String getSmalllogo() {
        return smalllogo;
    }

    public void setSmalllogo(String smalllogo) {
        this.smalllogo = smalllogo;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public BigInteger getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(BigInteger updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BrandT brandT = (BrandT) o;
        return sort == brandT.sort &&
                versiont == brandT.versiont &&
                Objects.equals(id, brandT.id) &&
                Objects.equals(name, brandT.name) &&
                Objects.equals(creatorid, brandT.creatorid) &&
                Objects.equals(createtime, brandT.createtime) &&
                Objects.equals(des, brandT.des) &&
                Objects.equals(logo, brandT.logo) &&
                Objects.equals(website, brandT.website) &&
                Objects.equals(smalllogo, brandT.smalllogo) &&
                Objects.equals(updatetime, brandT.updatetime) &&
                Objects.equals(status, brandT.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, creatorid, createtime, des, logo, sort, website, smalllogo, updatetime, status, versiont);
    }
}
